package com.lyc.test;

import com.lyc.mvc.ResponseBody;
import com.lyc.mvc.ResponseView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class UserController {

    /**
     * 登录方法
     * @return
     */
    @ResponseBody("/login.do")
    public String login(HttpServletRequest request, HttpServletResponse response){
        return "登录成功";
    }

    /**
     * 注册方法
     * @return
     */
    @ResponseView("/reg.do")
    public String reg(HttpServletRequest request, HttpServletResponse response){
        return "注册成功";
    }
}
